import {createRouter, createWebHashHistory} from 'vue-router'
import Home from "@/views/home/home.vue";
import Login from "@/views/order-for-goods/order-for-goods.vue";

const routes = [
    {path: "/", redirect: "/home"},
    // 当访问/path的时候展示Home组件
    {path: "/home", component: Home},
    // 当访问/login的时候展示Login组件
    {path: "/login", component: Login}
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router
